package cn.lyf.conf;

import java.io.*;

import org.springframework.core.type.classreading.*;
import org.springframework.core.type.filter.*;
import org.springframework.core.type.*;
import org.springframework.core.io.*;

public class MyTypeFilter implements TypeFilter {
    AnnotationMetadata annotationMetadata;
    ClassMetadata classMetadata;
    Resource resource;

    @Override
    public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
            throws IOException {
        annotationMetadata = metadataReader.getAnnotationMetadata();
        classMetadata = metadataReader.getClassMetadata();
        resource = metadataReader.getResource();
        System.out.println("-->"+classMetadata.getClassName());
        return false;
    }

}
